package com.un.ebs.core.metadata;

import com.un.ebs.core.enums.DataTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @author liubo   18855815@qq.com
 * @date 2018-09-10
 * @desc
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MetadataField implements Serializable {

    private String name;

    private String displayName;

    private DataTypeEnum dataType;

    private int isArray;

    private boolean isNull;

    private int length;

    private String resourceCode;

    private String resourceType;

    private List<ResourceData> resourceData;

    private List<MetadataField> childField;

    public MetadataField(String name, DataTypeEnum type) {
        this.name = name;
        this.dataType = type;
    }

}
